package com.itggm.response;

 /**
  * @Author: ggm
  * @date:  2024/11/15
  * 业务响应状态码
  */

public enum ResponseStatus {
     NOT_LOGIN(401,",没有认证,请认证后访问"),

    SUCCESS(0,"操作成功"),
    FAIL(110,"操作失败"),
    ERROR(500,"系统异常,请刷新重试...");

    private final String message;
    private final Integer code;

    ResponseStatus(Integer code, String message){
        this.code = code;
        this.message = message;
    }

    public String getMessage(){
        return this.message;
    }

    public Integer getCode(){

        return  this.code;
    }


}
